projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5286743
)
Document limits of gtk_aspect_frame_get_ratio()
author
Emmanuele Bassi
<ebassi@gnome.org>
Tue, 12 Jan 2021 12:28:18 +0000
(12:28 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Tue, 12 Jan 2021 12:28:18 +0000
(12:28 +0000)
The GtkAspectFrame:ratio getter will return the value set, not the
actual ratio computed in case GtkAspectFrame:obey-child is TRUE.
gtk/gtkaspectframe.c
patch
|
blob
|
history
diff --git
a/gtk/gtkaspectframe.c
b/gtk/gtkaspectframe.c
index 23d1ea86929971a37c2f40ef3d7f784c8f4d47a6..24938519fdee782720bb2cd39ee8f5d6b9b3a4bf 100644
(file)
--- a/
gtk/gtkaspectframe.c
+++ b/
gtk/gtkaspectframe.c
@@
-458,7
+458,8
@@
gtk_aspect_frame_set_ratio (GtkAspectFrame *self,
* gtk_aspect_frame_get_ratio:
* @self: a #GtkAspectFrame
*
- * Returns the desired aspect ratio of the child.
+ * Returns the desired aspect ratio of the child set using
+ * gtk_aspect_frame_set_ratio().
*
* Returns: the desired aspect ratio
*/